.TH std::chrono::day::operatorunsigned 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::day::operatorunsigned \- std::chrono::day::operatorunsigned

.SH Synopsis
   constexpr explicit operator unsigned() const noexcept;  \fI(since C++20)\fP

   Returns the day value stored in *this.

.SH Return value

   The day value stored in *this.

.SH Example


// Run this code

 #include <chrono>
 #include <iostream>

 int main()
 {
     constexpr std::chrono::day d{15};
     constexpr unsigned day = static_cast<unsigned>(d);
     std::cout << "The day is: " << day << '\\n';
 }

.SH Output:

 The day is: 15
